package com.managerConsummer.service;

import entity.Role;
import entity.Ur;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * The interface Role service feign.
 *
 * @author overlook
 * @date 2022 -04-16 20:33:37
 */
@FeignClient(name = "mp-p")
public interface RoleServiceFeign {
    /**
     * Find all role string.
     *
     * @param role the role
     * @return the string
     */
    @RequestMapping("/role/findAllRole")
    @ResponseBody
    String findAllRole(@RequestBody Role role);

    /**
     * Insert role string.
     *
     * @param role the role
     * @return the string
     */
    @RequestMapping("/role/insertRole")
    @ResponseBody
    String insertRole(@RequestBody Role role);

    /**
     * Update role string.
     *
     * @param role the role
     * @return the string
     */
    @RequestMapping("/role/updateRole")
    @ResponseBody
    String updateRole(@RequestBody Role role);

    /**
     * Insert ur string.
     *
     * @param ur the ur
     * @return the string
     */
    @RequestMapping("/role/insertUr")
    @ResponseBody
    String insertUr(Ur ur);

    /**
     * Select role and power string.
     *
     * @param role the role
     * @return the string
     */
    @RequestMapping("/role/selectRoleAndPower")
    @ResponseBody
    String selectRoleAndPower(@RequestBody Role role);


    /**
     * Select one role power string.
     *
     * @param role the role
     * @return the string
     */
    @RequestMapping("/role/selectOneRolePower")
    @ResponseBody
    String selectOneRolePower(@RequestBody Role role);
}
